Re: [GENERAL] Returning an integer from a date - Mailing list pgsql-general

From Herouth Maoz
Subject Re: [GENERAL] Returning an integer from a date
Date
Msg-id l03110705b325274430ee@[147.233.148.145]
Whole thread Raw
In response to Returning an integer from a date  (Rick Dearman <rdear@gameszone.net>)
List pgsql-general
At 12:51 +0200 on 29/03/1999, Rick Dearman wrote:


>
>   I have a date field in a table, I want to create a function to
>manipulate this date, however I want the date to come to me as an integer.
>
> Is this possible? Or do I have to get it as a char *string??

What kind of an integer do you need? You could have the "milliseconds since
epoch" kind of number quite easily. Or do you need a number such as
19990301?

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-general by date:

Previous
From: Gerard Saraber
Date:
Subject: backing up pgsql
Next
From: Stuart Rison
Date:
Subject: problems with a sub-select (takes donkeys' years)